import { ApiProperty } from "@nestjs/swagger"
import { IsEmail, IsNotEmpty, isNotEmpty } from "class-validator"

export class UpdateUserDto {
  @ApiProperty()
  headPic: string

  @ApiProperty()
  nickName: string

  @IsNotEmpty({
    message: '邮箱不能为空'
  })
  @IsEmail({},{
    message: '邮箱格式不正确'
  })
  @ApiProperty()
  email: string

  @IsNotEmpty({
    message: '验证码不能为空'
  })
  @ApiProperty()
  captcha: string
}